import { Controller, Get, Render } from '@nestjs/common';
import { AppService } from './app.service';
import { SystemLoginService } from './modules/system/service/system.login.service';

@Controller()
export class AppController {
  constructor(
    private readonly appService: AppService,
    private readonly systemLoginService: SystemLoginService,
  ) {}

  @Get()
  @Render('index')
  root() {
    return { message: 'Hello World!' };
  }

  @Get('/test')
  @Render('test')
  test() {
    return this.systemLoginService.captcha();
  }
}
